#include	<sys/types.h>
#include	<sys/wait.h>
#include	"my.h"

pid_t		xwait(int *statut)
{
  pid_t		process;

  if ((process = wait(statut)) == -1)
    {
      my_put_error("Fatal error when trying to execute the program.\n");
      my_put_error("Maybe that pid SIG return is catched by another program.\n");
      return (-1);
    }
  return (process);
}
